package com.TPNexus.model;

import java.util.ArrayList;
import java.util.List;

import javax.enterprise.context.SessionScoped;
import java.io.Serializable;

@SessionScoped
public class Comment implements Serializable {

	private static final long serialVersionUID = 4584764661699436774L;
	private long commentid;
	private PurchaseOrder purchaseorder;
	private List<CommentDetail> comments=new ArrayList<CommentDetail>();

	public long getCommentid() {
		return commentid;
	}

	public void setCommentid(long commentid) {
		this.commentid = commentid;
	}

	public PurchaseOrder getPurchaseorder() {
		return purchaseorder;
	}

	public void setPurchaseorder(PurchaseOrder purchaseorder) {
		this.purchaseorder = purchaseorder;
	}

	public List<CommentDetail> getComments() {
		return comments;
	}

	public void setComments(List<CommentDetail> comments) {
		this.comments = comments;
	}

	public Comment(long commentid, PurchaseOrder purchaseorder,
			ArrayList<CommentDetail> comments) {
		super();
		this.commentid = commentid;
		this.purchaseorder = purchaseorder;
		this.comments = comments;
	}

	public Comment() {

	}
}
